from Board import *
from Player import *

class ComputerPlayer(Player):
    
    def __init__(self,ai):
        """
        The computer player is initialized to use a particular AI
        """
        self.ai = ai
    
    def move(self,board):
        """
        A computer player will use its AI to find the next appropriate move
        to make and then do that move
        """
        moveChosen = self.ai.chooseMove(board)
        response = board.doMove(moveChosen)
        
        return response
        